<form action="raidvalidate.php" method="post">
    <table width="100%">
        <tr>
            <td>
                <span id="boldsmall">Boss:</span>
            </td>
            <td colspan="4">
                <span id="boldsmall">Heroic:</span>
            </td>
        </tr>
        <tr>
            <td>
                <input class="post" name="" id="" value="<?php echo $bossname; ?>" type="text" style="width: 300px;" />
            </td>
            <td style="text-align: center;">
                <input type="checkbox" name="heroic" value="heroic" <?php echo $heroicboss; ?> />
            </td>
            <td colspan="3">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td><span id="boldsmall">Loots:</span></td>
            <td><span id="boldsmall">Heroic:</span></td>
            <td><span id="boldsmall">Slot:</span></td>
            <td><span id="boldsmall">Price:</span></td>
            <td><span id="boldsmall">Buyer:</span></td>
        </tr>

        <?php
        if($items != NULL)
        {
            $count = 1;
            foreach($items as $item)
            {
                echo '<tr class="items" id="item' . $count . '">';
                echo '<td>';
                echo '<input class="post" name="item' . $count . '" id="item' . $count . '" value="' . $item->getName() . '" type="text" style="width: 300px;">';
                echo '</td>';
                echo '<td  style="text-align: center;">';
                if($item->getHeroic() == "true")
                {
                    echo '<input type="checkbox" id="heroic' . $count . '" name="heroic' . $count . '" value="Heroic" checked="checked" />';
                }
                else
                {
                    echo '<input type="checkbox" id="heroic' . $count . '" name="heroic' . $count . '" value="Heroic" />';
                }
                echo '</td>';
                echo '<td>';
                echo '<select class="post" name="slot' . $count . '" id="slot' . $count . '">';
                echo '<option value="-1"></option>';
                echo '<option value="16">Back</option>';
                echo '<option value="5">Chest</option>';
                echo '<option value="8">Feet</option>';
                echo '<option value="11">Finger</option>';
                echo '<option value="10">Hands</option>';
                echo '<option value="1">Head</option>';
                echo '<option value="23">Held In Off-hand</option>';
                echo '<option value="7">Legs</option>';
                echo '<option value="2">Neck</option>';
                echo '<option value="22">Off Hand</option>';
                echo '<option value="13">One-Hand</option>';
                echo '<option value="15">Ranged</option>';
                echo '<option value="28">Relic</option>';
                echo '<option value="14">Shield</option>';
                echo '<option value="3">Shoulder</option>';
                echo '<option value="25">Thrown</option>';
                echo '<option value="12">Trinket</option>';
                echo '<option value="17">Two-Hand</option>';
                echo '<option value="6">Waist</option>';
                echo '<option value="9">Wrist</option>';
                echo '</select>';
                echo '</td>';
                echo '<td>';
                echo '<input class="post" name="price' . $count . '" id="price' . $count . '" value="" type="text" style="width: 50px;" />';
                echo '</td>';
                echo '<td>';
                echo '<input class="post" name="buyer' . $count . '" id="buyer' . $count . '" value="' . $item->getBuyer() . '" type="text" style="width: 100%;" />';
                echo '</td>';
                echo '</tr>';
                $count++;
            }
        }
        else
        {
            echo '<tr class="items" id="item1">';
            echo '<td>';
            echo '<input class="post" name="item1" id="item1" value="" type="text" style="width: 300px;">';
            echo '</td>';
            echo '<td  style="text-align: center;">';
            echo '<input type="checkbox" id="heroic1" name="heroic1" value="Heroic" />';
            echo '</td>';
            echo '<td>';
            echo '<select class="post" name="slot1" id="slot1">';
            echo '<option value="-1" selected="selected"></option>';
            echo '<option value="16">Back</option>';
            echo '<option value="5">Chest</option>';
            echo '<option value="8">Feet</option>';
            echo '<option value="11">Finger</option>';
            echo '<option value="10">Hands</option>';
            echo '<option value="1">Head</option>';
            echo '<option value="23">Held In Off-hand</option>';
            echo '<option value="7">Legs</option>';
            echo '<option value="2">Neck</option>';
            echo '<option value="22">Off Hand</option>';
            echo '<option value="13">One-Hand</option>';
            echo '<option value="15">Ranged</option>';
            echo '<option value="28">Relic</option>';
            echo '<option value="14">Shield</option>';
            echo '<option value="3">Shoulder</option>';
            echo '<option value="25">Thrown</option>';
            echo '<option value="12">Trinket</option>';
            echo '<option value="17">Two-Hand</option>';
            echo '<option value="6">Waist</option>';
            echo '<option value="9">Wrist</option>';
            echo '</select>';
            echo '</td>';
            echo '<td>';
            echo '<input class="post" name="price1" id="price1" value="" type="text" style="width: 50px;" />';
            echo '</td>';
            echo '<td>';
            echo '<input class="post" name="buyer1" id="buyer1" value="" type="text" style="width: 100%;" />';
            echo '</td>';
            echo '</tr>';
        }
        ?>
        <tr>
            <td colspan="5" style="padding-top: 10px; padding-bottom: 10px;">
                <button type="button" class="btnmain" id="add">Add Another Item</button>
                <button type="button" class="btnmain" id="remove">Remove an Item</button>
                <input type="hidden" id="itemcount" name="itemcount" value="1" />
            </td>
        </tr>
        <tr>
            <td colspan="5">
                <span id="boldsmall">Attendees:</span>
            </td>
        </tr>
        <tr>
            <td colspan="5">
                <textarea class="post" name="" id="" rows="5" cols="30" style="width: 100%;"><?php
                    if($attendance != NULL)
                    {
                        foreach($attendance as $a)
                        {
                            echo $a . ", ";
                        }
                    }
                    ?></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="5" style="text-align: center; padding-top: 10px;">
                <input type="submit" class="btnmain" name="submit" value="Submit" />
            </td>
        </tr>
    </table>
</form>